/*
 * (c) 2021 <tanghaifeng-gz@loongson.cn> <pengren.mcu@qq.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 *
 */

#ifndef __LS2K_LG_LOONGSON_AA0_CONFIG_H
#define __LS2K_LG_LOONGSON_AA0_CONFIG_H

#define CONFIG_RECOVER

#if defined(CONFIG_MIPS)
#include "ls2k_mxm_core.h"
#elif defined(CONFIG_LOONGARCH)
#include "ls2k_mxm_core_la.h"
#endif
#include "loongson_bootmenu.h"

#define CONFIG_LOONGSON_BOARD_NAME "LG-LOONGSON-AA0"

#define	CONFIG_EXTRA_ENV_SETTINGS					\
	CONSOLE_STDOUT_SETTINGS \
	LOONGSON_BOOTMENU \
	"loadaddr=" __stringify(CONFIG_SYS_LOAD_ADDR) "\0" \
	"fdt_addr=" __stringify(FDT_LOAD_ADDR) "\0" \
	"rd_start=" __stringify(RAMDISK_START) "\0" \
	"rd_size=" __stringify(RAMDISK_SIZE) "\0" \
	"mtdids=" CONFIG_MTDIDS_DEFAULT "\0"					\
	"mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0"				\
	"root_dev=sda\0" \
	"syspart=1\0" \
	"update=1\0" \

/* Boot beep */
#define BEEP_GPIO 37

#endif	/* __LS2K_LG_LOONGSON_AA0_CONFIG_H */
